<?php
include ("cek_session.php");
?>
<html>
	<head>
		<title>Indoherbal</title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	</head>
	<body>
		<div class="page-header">
			<h1 align = "center" >indoherbal admin <small>-Indonesia Herbal-</small></h1>
				<h1 align = "center" ><small>-admin-</small></h1>
		</div>
		<div class="navbar">
		<div class="navbar-inner">
			<li class="active">
			<a class="brand" href="adminberanda.php">Beranda</a>
			<ul class="nav">
			<li>
				<a href="adminpenyakit.php">Penyakit</a>
			</li>
			<li>
				<a href="adminobat.php">Obat</a>
			</li>
			<li>
				<a href="logout.php">Logout</a>
			</li>
			</ul>
		</div>
		</div>
		<div class = "span9">
		<?php
			if (!empty($_GET['message']) && $_GET['message'] == 'success') {
			echo '<div class="alert alert-success">Penyakit berhasil ditambahkan<button class="close" data-dismiss="alert">&times;</button></div>';
			}
	?>
	
		<?php
			if (!empty($_GET['message']) && $_GET['message'] == 'warning') {
			echo '<div class="alert alert-warning">Penyakit belum berhasil ditambahan<button class="close" data-dismiss="alert">&times;</button></div>';
			}
	?>
	
		<label>Kode</label>
		<form class="affix" action="db_penyakit.php" method="POST" >
				<input class="input-xxlarge" type="text" rows="6" name="Kode11" placeholder="Masukkan Kode Penyakit" required="required">
				</textarea>
				<br></br>
		<label>Nama Penyakit</label>
				<input class="input-xxlarge" type="text" rows="6" name="NamaPenyakitt" placeholder="Masukkan Nama Penyakit" required="required">
				</textarea>
				<br></br>
		<label>Deskripsi Penyakit</label>
				<textarea class="input-xxlarge" rows="10" name="DeskripsiPenyakitt" placeholder="Masukkan Deskripsi Penyakit"required="required">
				</textarea><br>
				<button type="submit" class="btn" name="submit">Submit</button>
		</form>		
		</div>
		<div class = "span3">
		<p><a href="adminlistpenyakit.php">List Penyakit</p>
		</div>
	</body>
</html>